﻿using System;
using System.Collections.Generic;

namespace AvantGameMachine.Graphics
{
    public class BoundingCube
    {

        PosVector min = new PosVector(0.0f, 0.0f, 0.0f);
        PosVector max = new PosVector(0.0f, 0.0f, 0.0f);

        public BoundingCube()
        {
        }

        public BoundingCube(IRenderizableObject _obj)
        {
            min = _obj.Min;
            max = _obj.Max;
        }

        public PosVector Min
        {
            get { return min; }
            set { min = value; }
        }

        public PosVector Max
        {
            get { return max; }
            set { max = value; }
        }

        public PosVector Length
        {
            get { return max - min; }
        }
    }
}
